<?php
/**
 * Created by PhpStorm.
 * User: Woo
 * Date: 2018/3/7
 * Time: 13:59
 */

namespace App\Listener;


use App\Events\TestEvent;

class TestListener
{
    public function __construct()
    {
    }

    public function handle(TestEvent $event)
    {
        $data = $event->getData();

//        sleep(10);// 模拟一些慢速的事件处理
        var_dump($data);
    }
}